package com.woniuxy.service;

import com.woniuxy.dto.CommodityDto;
import com.woniuxy.dto.GoodsPropDto;
import com.woniuxy.dto.commonDto.BaseDto;
import com.woniuxy.entity.CommodityTable;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.param.AddCommodityParam;
import com.woniuxy.param.CommodityParam;

import java.util.List;

/**
 * <p>
 * 商品详情
 * </p>
 *
 * @author zcx, ftl, gr, rhs
 * @since 2021-12-31
 */
public interface CommodityTableService extends IService<CommodityTable> {

    BaseDto<CommodityDto> listCommodityByKey(CommodityParam cp);

    /*
    添加商品信息
    */
    CommodityDto addCommodity(AddCommodityParam addCommodityParam);

    CommodityDto getCommodityInfo(Integer commodityTableId);

    boolean removeGoodsCommodityByIds(List<Integer> ids);
}
